package com.mf.entity.req.search;

import com.mf.entity.req.publicReq.ReqPublicPaging;
import io.swagger.v3.oas.annotations.media.Schema;

import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 撕碎投入明细查询条件
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
public class SearchReqRiveDetail extends ReqPublicPaging implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "关键值:物料名称,物料重量")
    private String key;

    @Schema(description = "撕碎id")
    @NotNull(message = "撕碎id不能为空")
    private Integer riveId;
    @Schema(description = "来源id")
    private Integer sourceId;
    @Schema(description = "工单来源；1-来料单；2-分拣工单")
    private Integer workSource;
    @Schema(description = "物料id")
    private Integer materialId;
    @Schema(description = "30-粉碎;5-入库")
    private Integer nextProcess;

    @Schema(description = "关联id")
    private Integer relevancyId;
    @Schema(description = "关联类型")
    private Integer relevancyType;
}
